<%@ Assembly Name="Starznet.SharePoint.SPDAT, Version=1.0.0.0, Culture=neutral, PublicKeyToken=74e3ac9236a77c47" %>
<%@ Page Language="C#" Inherits="Starznet.SharePoint.SPDAT.ApplicationPages.Settings.MembershipAddUserPage" MasterPageFile="~/_layouts/application.master" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="<%$Resources:szadm,UserAdd_PageTitle%>" EncodeMethod="HtmlEncode" />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" Text="<%$Resources:szadm,UserAdd_PageTitle%>" EncodeMethod="HtmlEncode" />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" Text="<%$Resources:szadm,UserAdd_PageDesc%>" EncodeMethod='HtmlEncodeAllowSimpleTextFormatting' />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageImage" runat="server">
	<a href="http://www.starznet.co.uk" title="Visit the Starznet website" target="_blank">
	    <img src="/_layouts/Starznet/StarznetPageGraphic.gif" alt="Starznet Ltd" style="margin-top:3px;border:0px;"/>
	</a>
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
<table class="propertysheet" border="0" width="100%" cellspacing="0" cellpadding="0">
    <asp:label ID="AddUserError" runat="server" Visible="false" ForeColor="#FF0000" EnableViewState="false" />
    <wssuc:InputFormSection 
        Title="<%$Resources:szadm,UserAdd_UsernameLabel%>"
		Description="<%$Resources:szadm,UserAdd_UsernameDesc%>"
		runat="server">
	   <Template_InputFormControls>
			<wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_UsernameLabel%>" runat="server">
				 <Template_Control>
		            <SharePoint:InputFormTextBox Title="<%$Resources:szadm,UserAdd_UsernameLabel%>" CssClass="ms-input"  ID="TxtUsername" Columns="40" runat="server" MaxLength="255" />
				    <SharePoint:InputFormRequiredFieldValidator 
		                ID="ReqTxtUsername"
			            ControlToValidate="TxtUsername"
			            ErrorMessage="<%$Resources:szadm,UserAdd_UsernameError%>" runat="server" />
				 </Template_Control>
			</wssuc:InputFormControl>
	   </Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:InputFormSection 
        Title="<%$Resources:szadm,UserAdd_NameLabel%>"
		Description="<%$Resources:szadm,UserAdd_NameDesc%>"
		runat="server">
	   <Template_InputFormControls>
			<wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_FirstNameLabel%>" runat="server">
				 <Template_Control>
		            <SharePoint:InputFormTextBox Title="<%$Resources:szadm,UserAdd_FirstNameLabel%>" CssClass="ms-input"  ID="TxtFirstName" Columns="40" runat="server" MaxLength="255" />
				 </Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_LastNameLabel%>" runat="server">
				 <Template_Control>
		            <SharePoint:InputFormTextBox Title="<%$Resources:szadm,UserAdd_LastNameLabel%>" CssClass="ms-input"  ID="TxtSurname" Columns="40" runat="server" MaxLength="255" />
				 </Template_Control>
			</wssuc:InputFormControl>
	   </Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:InputFormSection 
        Title="<%$Resources:szadm,UserAdd_EmailLabel%>"
		Description="<%$Resources:szadm,UserAdd_EmailDesc%>"
		runat="server">
	   <Template_InputFormControls>
			<wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_EmailLabel%>" runat="server">
				 <Template_Control>
		            <SharePoint:InputFormTextBox Title="<%$Resources:szadm,UserAdd_EmailLabel%>" CssClass="ms-input"  ID="TxtEmail" Columns="40" runat="server" MaxLength="255" />
				    <SharePoint:InputFormRequiredFieldValidator 
		                ID="ReqTxtEmail"
			            ControlToValidate="TxtEmail"
			            ErrorMessage="<%$Resources:szadm,UserAdd_EmailError%>" 
			            runat="server" />
			        <SharePoint:InputFormRegularExpressionValidator
			            ID="RegExTxtEmail"
			            ControlToValidate="TxtEmail"
			            ErrorMessage="<%$Resources:szadm,UserAdd_EmailRegExError%>" 
			            runat="server" 
			            ValidationExpression="[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}" />
				 </Template_Control>
			</wssuc:InputFormControl>
	   </Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:InputFormSection
        Title="<%$Resources:szadm,UserAdd_PasswordLabel%>"
		Description="<%$Resources:szadm,UserAdd_PasswordDesc%>"
		runat="server">
		<Template_InputFormControls>
            <wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_PasswordLabel%>" runat="server">
			     <Template_Control>
	                <SharePoint:InputFormTextBox Title="<%$Resources:szadm,UserAdd_PasswordLabel%>" CssClass="ms-input" TextMode="Password" ID="TxtPassword" Columns="40" runat="server" MaxLength="255" />
			        <SharePoint:InputFormRequiredFieldValidator 
		                ID="ReqTxtPassword"
			            ControlToValidate="TxtPassword"
			            ErrorMessage="<%$Resources:szadm,UserAdd_PasswordError%>" runat="server" />
			     </Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_ConfirmPasswordLabel%>" runat="server">
			     <Template_Control>
	                <SharePoint:InputFormTextBox Title="<%$Resources:szadm,UserAdd_ConfirmPasswordLabel%>" CssClass="ms-input" TextMode="Password" ID="TxtConfirmPassword" Columns="40" runat="server" MaxLength="255" />
			        <SharePoint:InputFormRequiredFieldValidator 
		                ID="ReqTxtConfirmPassword"
			            ControlToValidate="TxtConfirmPassword"
			            ErrorMessage="<%$Resources:szadm,UserAdd_ConfirmPasswordError%>" runat="server" />
			        <SharePoint:InputFormCustomValidator
			            ID="CusValTxtConfirmPassword"
			            ControlToValidate="TxtConfirmPassword"
			            ErrorMessage="<%$Resources:szadm,UserAdd_ConfirmPasswordErrorCustom%>" 
			            runat="server" OnServerValidate="ValidatePassword" />
			     </Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:InputFormSection
        Title="<%$Resources:szadm,UserAdd_ReqQandALabel%>"
		Description="<%$Resources:szadm,UserAdd_ReqQandADesc%>"
		runat="server"
		ID="IFSQandA">
		<Template_InputFormControls>
            <wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_QuestionLabel%>" runat="server">
			     <Template_Control>
	                <SharePoint:InputFormTextBox Title="<%$Resources:szadm,UserAdd_QuestionLabel%>" CssClass="ms-input" ID="TxtQuestion" Columns="40" runat="server" MaxLength="255" />
			     </Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_AnswerLabel%>" runat="server">
			     <Template_Control>
	                <SharePoint:InputFormTextBox Title="<%$Resources:szadm,UserAdd_AnswerLabel%>" CssClass="ms-input" ID="TxtAnswer" Columns="40" runat="server" MaxLength="255" />
			     </Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:InputFormSection
        Title="<%$Resources:szadm,UserAdd_RoleLabel%>"
		Description="<%$Resources:szadm,UserAdd_RoleDesc%>"
		runat="server">
		<Template_InputFormControls>
            <wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_RoleLabel%>" runat="server">
			     <Template_Control>
			        <SharePoint:PeopleEditor 
			            ID="PeopleEditorRoles"
			            MultiSelect="true"
			            AllowEmpty="true"
			            runat="server"
			            ValidatorEnabled="true" 
			            PrincipalSource="RoleProvider" />
			     </Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:InputFormSection
        Title="<%$Resources:szadm,UserAdd_GroupLabel%>"
		Description="<%$Resources:szadm,UserAdd_GroupDesc%>"
		runat="server">
		<Template_InputFormControls>
            <wssuc:InputFormControl LabelText="<%$Resources:szadm,UserAdd_GroupLabel%>" runat="server">
			     <Template_Control>
			        <SharePoint:PeopleEditor 
			            ID="PeopleEditorSPGroups"
			            SelectionSet="SPGroup"
			            MultiSelect="true"
			            AllowEmpty="false"
			            runat="server"
			            ValidatorEnabled="true" />
			     </Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:InputFormSection
        Title="Auto Create User Profile"
		Description="Set whether a SharePoint user profile should automatically be created for this user. NOTE: You must have the relevant permissions to perform this action."
		runat="server">
		<Template_InputFormControls>
            <wssuc:InputFormControl LabelText="Auto Create User Profile" runat="server">
			     <Template_Control>
			        <SharePoint:InputFormCheckBox
			            Id="ChkAutoAddProfile"
			            LabelText="Auto Create User Profile"
			            runat="server" />
			     </Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
    </wssuc:InputFormSection>
    <wssuc:ButtonSection runat="server">
	   <Template_Buttons>
		  <asp:Button UseSubmitBehavior="false" runat="server" CssClass="ms-ButtonHeightWidth" OnClick="BtnUpdateUser_Click" Text="<%$Resources:wss,multipages_okbutton_text%>" id="BtnCreate" accesskey="<%$Resources:wss,okbutton_accesskey%>" CausesValidation="true"/>
	   </Template_Buttons>
    </wssuc:ButtonSection>
 </table>
</asp:Content>
